<template>
  <el-row class="mb-4">
    <el-button>Default</el-button>
    <el-button type="primary" @click="getToken">Primary</el-button>
    <el-button type="success">Success</el-button>
    <el-button type="info">Info</el-button>
    <el-button type="warning">Warning</el-button>
    <el-button type="danger">Danger</el-button>
  </el-row>

  <el-switch
    v-model="value1"
    size="large"
    active-text="Open"
    inactive-text="Close"
  />
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { UserApi } from '@/api/user'

const value1 = ref(true)

function getToken() {
  UserApi.getToken()
  UserApi.download()
}



</script>